import React from 'react';
import { UserAuth } from '../../utils/hooks';
import NotAuth from '../../components/NotAuth';
import { Outlet } from 'react-router-dom';
const ModelPlay = () => {
  return <Outlet></Outlet>;
};

export default () => {
  const { authority } = UserAuth('ModelPlay');
  return <>{authority ? <ModelPlay /> : <NotAuth />}</>;
};
